package com.situ.water_BE.controller;


import com.situ.water_BE.pojo.BeFlow;
import com.situ.water_BE.service.BeFlowService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author Angel
 * @since 2020-12-01
 */
@RestController
@RequestMapping("/be-flow")
public class BeFlowController { //流程模板
    @Autowired
    private BeFlowService beFlowService;
    @GetMapping("/queryAll")
    public List<BeFlow> queryAll(){
        List<BeFlow> beFlows = beFlowService.queryAll();
        return beFlows;
    }
    @GetMapping("/countOrderUser")
    public List<Map> countOrderUser(){
        List<Map> list = beFlowService.countOrderUser();
        return list;
    }
}

